package entity;

/**
 * 购物车实体类
 * @author hy
 * @Data
 */
public class Gsales {
    private int gId;
    private int sId;
    private int sNum;
    private String gname;
    private double gPrice;
    private int gNum;
    private int allSnum;

    /**
     *  购物结算
     * @param gId
     * @param sId
     * @param sNum
     */
    public Gsales(int gId , int sId , int sNum){
        this.gId = gId;
        this.sId = sId;
        this.sNum = sNum;
    }

    /**
     * 展现商品列表
     * @param gname
     * @param gPrice
     * @param gNum
     * @param allSnum
     */
    public Gsales(String gname, double gPrice ,int gNum,int allSnum){
        this.gname = gname;
        this.gPrice = gPrice;
        this.gNum = gNum;
        this.allSnum = allSnum;
    }


    public int getgId() {
        return gId;
    }

    public void setgId(int gId) {
        this.gId = gId;
    }

    public int getsId() {
        return sId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public int getsNum() {
        return sNum;
    }

    public void setsNum(int sNum) {
        this.sNum = sNum;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public double getgPrice() {
        return gPrice;
    }

    public void setgPrice(double gPrice) {
        this.gPrice = gPrice;
    }

    public int getgNum() {
        return gNum;
    }

    public void setgNum(int gNum) {
        this.gNum = gNum;
    }

    public int getAllSnum() {
        return allSnum;
    }

    public void setAllSnum(int allSnum) {
        this.allSnum = allSnum;
    }
}
